package com.smxy.mall.model.request;

import io.swagger.annotations.ApiModel;
import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;

@ApiModel()
@Data
public class AddressReq {
    private Integer id;
    @NotNull(message = "收货人不能为空")
    @NotBlank(message = "收货人不能为空")
    private String name;  //收货人
    @NotNull(message = "手机号不能为空")
    @NotBlank(message = "手机号不能为空")
    private String phone; //手机
    @NotNull(message = "地址不能为空")
    @NotBlank(message = "地址不能为空")
    private String address; //地址
    @NotNull(message = "详细地址不能为空")
    @NotBlank(message = "详细地址不能为空")
    private String detail; //门牌号
    private String tag; //标签
    private Integer sex; //性别
    private Boolean isDefault;  //是否默认
}
